<?php require_once('../../core/import.php');?>
<?php User::Permission('ACCOUNT_LIST_ISTOP'); ?>
<?php
 if($_SERVER['REQUEST_METHOD']=='POST')
    {        
        #遍历
	  $Data=array
	  (
	 	'M_IsTop'=>1,
		'M_IsTop_Datetime'=>date('Y-m-d G:i:s')	
	  );
        foreach(@Functions::FormArgs('ID') as $Value)
        {
        	DB::UpdateRowByID('account',$Value,$Data);
        }

        #转向
        Functions::JsLocation($_SERVER['HTTP_REFERER']);
    }
?>